#ifndef SCREEN_RECT_CONVERSION_H_INCLUDED
#define SCREEN_RECT_CONVERSION_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "screen_point.h"

inline RECT to_windows_rect( t_screen_rect const& rect )
{
	RECT result;
	
	result.left   = rect.left;
	result.top    = rect.top;
	result.right  = rect.right;
	result.bottom = rect.bottom;
	return result;
}

inline t_screen_rect from_windows_rect( RECT const& rect )
{
	return t_screen_rect( rect.left, rect.top, rect.right, rect.bottom );
}

#endif